﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Sistema.WF.Componentes.Controles
{
    public class R2CheckBox : CheckBox
    {
        public R2Configuracoes _conf = new R2Configuracoes();
        public R2CheckBox()
        {
            BackColor = _conf.CorFundo;
            Font = _conf.Fonte;
            //BackColor = System.Drawing.Color.FromArgb(105,150,205);
            //Font = new System.Drawing.Font("arial", 12.00F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            CheckAlign = System.Drawing.ContentAlignment.MiddleLeft;

            
        }
        protected override void OnCheckedChanged(EventArgs e)
        {
            base.OnCheckedChanged(e);
            //BackColor = System.Drawing.Color.FromArgb(105, 150, 210);
            BackColor = _conf.OnCheck();
        }
    }
}
